package com.briup.day2;

import java.util.Scanner;

public class Test12 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int array[] = {2, 3, 5, 7, 11, 13};
        if (n < 0 || n > 15) {
            System.out.println("输入数字不符合要求");
            return;
        }
        System.out.print(n + "=");

        int j = 0 ;
        for (int i = 0; i < array.length; i++) {
            if (n < array[i]) {
                break;
            }
            while (n % array[i] == 0) {
                if (n % array[i] == 0 && n != array[i]) {
                    System.out.print(array[i] + "*");
                }
                if (n == array[i]) {
                    System.out.println(array[i]);
                }
                n /= array[i];
            }
        }
    }
}
